home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBdisp / disp.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  1.8 KB  |  69 lines

  1. // disp.cpp : Defines the initialization routines for the DLL.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "disp.h"
  6. #include "export.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. //
  15. //    Note!
  16. //
  17. //        If this DLL is dynamically linked against the MFC
  18. //        DLLs, any functions exported from this DLL which
  19. //        call into MFC must have the AFX_MANAGE_STATE macro
  20. //        added at the very beginning of the function.
  21. //
  22. //        For example:
  23. //
  24. //        extern "C" BOOL PASCAL EXPORT ExportedFunction()
  25. //        {
  26. //            AFX_MANAGE_STATE(AfxGetStaticModuleState());
  27. //            // normal function body here
  28. //        }
  29. //
  30. //        It is very important that this macro appear in each
  31. //        function, prior to any calls into MFC.  This means that
  32. //        it must appear as the first statement within the 
  33. //        function, even before any object variable declarations
  34. //        as their constructors may generate calls into the MFC
  35. //        DLL.
  36. //
  37. //        Please see MFC Technical Notes 33 and 58 for additional
  38. //        details.
  39. //
  40.  
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CDispApp
  43.  
  44. BEGIN_MESSAGE_MAP(CDispApp, CWinApp)
  45.     //{{AFX_MSG_MAP(CDispApp)
  46.         // NOTE - the ClassWizard will add and remove mapping macros here.
  47.         //    DO NOT EDIT what you see in these blocks of generated code!
  48.     //}}AFX_MSG_MAP
  49. END_MESSAGE_MAP()
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CDispApp construction
  53.  
  54. CDispApp::CDispApp()
  55. {
  56.     // TODO: add construction code here,
  57.     // Place all significant initialization in InitInstance
  58. }
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. // The one and only CDispApp object
  62.  
  63. CDispApp theApp;
  64.  
  65.  
  66. void Display (char * szStr,int option=1){
  67.     Disp(szStr,(BOOL)option);
  68. }
  69.